Category Icon   Executing Shell Scripts Using ARD

Shell scripts can be copied, then executed. If a script has any degree of complexity, or cannot be expressed on a single line, you can use Copy Items to copy the script file to the client computers, then execute it using the Send UNIX Command. To send a single-line command you can just use Send UNIX Command.

  1. Prepare and save your script.

    Make sure your script is saved with UNIX line endings.

  2. Open Remote Desktop.
  3. Select a computer list.
  4. Select one or more computers in the Remote Desktop window.
  5. Use the Copy Items command to copy your script to the client computers.
  6. After copying the script, choose Manage > Send UNIX Command.
  7. Execute the script by typing:
    sh [script path and name]
  8. Click Send.